<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src/components/APP/Report/Main/OrderStatistics.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="..\..\..\..\..\prettify.css" />
    <link rel="stylesheet" href="..\..\..\..\..\base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(..\..\..\..\..\sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="..\..\..\..\..\index.html">All files</a> / <a href="index.html">src/components/APP/Report/Main</a> OrderStatistics.vue
    </h1>
    <div class='clearfix'>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Statements</span>
        <span class='fraction'>0/71</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Branches</span>
        <span class='fraction'>0/24</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Functions</span>
        <span class='fraction'>0/13</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Lines</span>
        <span class='fraction'>0/71</span>
      </div>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
  &lt;div o-Container o-Container-App&gt;
    &lt;van-nav-bar title="工单统计趋势" left-arrow @click-left="onClickLeft" v-bind="{fixed:true}"/&gt;
    &lt;div class="content"&gt;
      &lt;div class="containerMask"&gt;&lt;/div&gt;
      &lt;div class="energyBox"&gt;
        &lt;div class="title"&gt;今年工单统计分析&lt;/div&gt;
        &lt;div id="typeDay" style="width: 100%;height: 200px;"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;van-cell-group v-for="(item,index) in energyMsg" :key="index"&gt;
        &lt;div class="title"&gt;&lt;span&gt;{{item.product}}&lt;/span&gt; &lt;span&gt;工单数：{{item.profitMsg}}&lt;/span&gt;&lt;/div&gt;
        &lt;div class="expenditure"&gt;未完工：{{item.expenditure}}&lt;/div&gt;
        &lt;div class="income"&gt;人均完工：{{item.income}}&lt;/div&gt;
        &lt;div class="income"&gt;平均处理时间：{{item.profit}}&lt;/div&gt;
      &lt;/van-cell-group&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/template&gt;
&nbsp;
&lt;script&gt;
    export default {
        name: "mms_engine_database_item", /* 这个name暂时不知道用啥用，根据官方文档说的是方便排错的 */
<span class="fstat-no" title="function not covered" >        data() {</span>
<span class="cstat-no" title="statement not covered" >            return {</span>
                octopus: this.$parent.octopus,
                energyMsg:[
                    {'product':'一月','income':'3','expenditure':'6.05','profit':'12小时37分钟51秒',profitMsg:'130'},
                    {'product':'二月','income':'7','expenditure':'3.81','profit':'4天29小时42分钟52秒',profitMsg:'87'},
                    {'product':'三月','income':'7','expenditure':'6.86','profit':'15小时35分钟38秒',profitMsg:'151'},
                    {'product':'四月','income':'83','expenditure':'7.38','profit':'65天28小时17分钟0秒',profitMsg:'238'},
                    {'product':'五月','income':'68','expenditure':'7.19','profit':'56天8小时33分钟15秒',profitMsg:'219'},
                    {'product':'六月','income':'40','expenditure':'6.57','profit':'28天14小时8分钟15秒',profitMsg:'178'},
                    {'product':'七月','income':'5','expenditure':'10.71','profit':'3天18小时49分钟14秒',profitMsg:'230'},
                    {'product':'八月','income':'84','expenditure':'8.14','profit':'3天14小时47分钟10秒',profitMsg:'255'},
                ],
            }
        },
<span class="fstat-no" title="function not covered" >        created(){</span>
<span class="cstat-no" title="statement not covered" >            let o=this;</span>
<span class="cstat-no" title="statement not covered" >            o.typeDaySelt();</span>
        },
        methods: {
            // 保存后回调事件，主控件为主的，子控件依赖主控件的，可在主控件保存后调用子控件的save。
            // 回调时因为数据是全部钩子动态绑定的，唯独因为创建会把保存类型给冲掉，所以这样要回传保存的类型
<span class="fstat-no" title="function not covered" >            save: function (data) {</span>
<span class="cstat-no" title="statement not covered" >                if (data.status.code == 200) {</span>
<span class="cstat-no" title="statement not covered" >                    this.octopus.tips.info("[" + data.status.code + "] Data Save Success.");</span>
                }
            },
<span class="fstat-no" title="function not covered" >            click: function (param) {</span>
<span class="cstat-no" title="statement not covered" >                console.log(param);</span>
            },
<span class="fstat-no" title="function not covered" >            onClickLeft() {</span>
<span class="cstat-no" title="statement not covered" >                this.octopus.router.jump('/APP/Report/Main/Page')</span>
            },
            //  七日巡检趋势（类型）数据
<span class="fstat-no" title="function not covered" >            typeDaySelt(){</span>
<span class="cstat-no" title="statement not covered" >                let that = this;</span>
<span class="cstat-no" title="statement not covered" >                let lastHour = new Date(new Date().getTime() - 1 * 60 * 60 * 1000);</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >                this.octopus.request.api.post("/Octopus/Engine/List", {</span></span>
                        pageData:{rowSize:99999},
                        id: 122,
                        value: this.octopus.passport.project,
                        cellData: [
                            {name:"Day"},
                            {name:"InspectionTypeCount"},
                            {name:"Month"},
                            {name:"Year"},
                            {name: "ID"},
                            {name: "TypeID"},
                            {name: "ProjectID",filterKey:"=",filterValue:this.octopus.passport.project},
                        ],
                    },
                    function(data){
<span class="cstat-no" title="statement not covered" >                        if(data.status.code ==200 &amp;&amp; data.content.queryData.length&gt;0){</span>
<span class="cstat-no" title="statement not covered" >                            that.typeDayMsg = (data.content.queryData);</span>
<span class="cstat-no" title="statement not covered" >                            let qwe = (data.content.queryData);</span>
<span class="cstat-no" title="statement not covered" >                            let aaa = [];</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >                            qwe.map((item,index)=&gt;{</span></span>
<span class="cstat-no" title="statement not covered" >                                aaa.push(item.TypeID)</span>
                            });
<span class="cstat-no" title="statement not covered" >                            let bbb = [];</span>
<span class="cstat-no" title="statement not covered" >                            for (let i = 0; i &lt; aaa.length; i++) {</span>
<span class="cstat-no" title="statement not covered" >                                if (bbb.indexOf(aaa[i]) === -1) {</span>
<span class="cstat-no" title="statement not covered" >                                    bbb.push(aaa[i])</span>
                                }
                            };
<span class="cstat-no" title="statement not covered" >                            let n = bbb.length * 7;</span>
<span class="cstat-no" title="statement not covered" >                            let qwer = qwe.slice(0,n)</span>
<span class="cstat-no" title="statement not covered" >                            let CleanCountDay = [];</span>
<span class="cstat-no" title="statement not covered" >                            let EngineerCountDay = [];</span>
<span class="cstat-no" title="statement not covered" >                            let SecurityCountDay = [];</span>
<span class="cstat-no" title="statement not covered" >                            let ReportDay = [];</span>
<span class="cstat-no" title="statement not covered" >                            for (let j = 0; j &lt; qwer.length; j++){</span>
<span class="cstat-no" title="statement not covered" >                                let n = 0;</span>
<span class="cstat-no" title="statement not covered" >                                if( qwer[j].TypeID === bbb[n]){</span>
<span class="cstat-no" title="statement not covered" >                                    CleanCountDay.push(qwer[j].InspectionTypeCount)</span>
                                }
<span class="cstat-no" title="statement not covered" >                                if( qwer[j].TypeID === bbb[n+1]){</span>
<span class="cstat-no" title="statement not covered" >                                    SecurityCountDay.push(qwer[j].InspectionTypeCount)</span>
                                }
<span class="cstat-no" title="statement not covered" >                                if( qwer[j].TypeID === bbb[n+2]){</span>
<span class="cstat-no" title="statement not covered" >                                    EngineerCountDay.push(qwer[j].InspectionTypeCount)</span>
                                }
<span class="cstat-no" title="statement not covered" >                                if(qwer[j].Month &lt; 10){</span>
<span class="cstat-no" title="statement not covered" >                                    qwer[j].Month = "0" + qwer[j].Month</span>
                                }else {
<span class="cstat-no" title="statement not covered" >                                    qwer[j].Month = qwer[j].Month</span>
                                }
<span class="cstat-no" title="statement not covered" >                                if(qwer[j].Day &lt; 10){</span>
<span class="cstat-no" title="statement not covered" >                                    qwer[j].Day = "0" + qwer[j].Day</span>
                                }else {
<span class="cstat-no" title="statement not covered" >                                    qwer[j].Day = qwer[j].Day</span>
                                }
<span class="cstat-no" title="statement not covered" >                                ReportDay.push(qwer[j].Month + '/' +qwer[j].Day)</span>
                            }
<span class="cstat-no" title="statement not covered" >                            let day = [];</span>
<span class="cstat-no" title="statement not covered" >                            for (let i = 0; i &lt; ReportDay.length; i++) {</span>
<span class="cstat-no" title="statement not covered" >                                if (day.indexOf(ReportDay[i]) === -1) {</span>
<span class="cstat-no" title="statement not covered" >                                    day.push(ReportDay[i])</span>
                                }
                            };
&nbsp;
<span class="cstat-no" title="statement not covered" >                            let series = [];</span>
<span class="cstat-no" title="statement not covered" >                            for (let i = 0; i &lt; bbb.length; i++) {</span>
<span class="cstat-no" title="statement not covered" >                                series.push({</span>
                                    name:bbb[i],
                                    type:'bar',
                                    stack: '广告',
                                })
                            }
<span class="cstat-no" title="statement not covered" >                            that.ReportDay = day;</span>
<span class="cstat-no" title="statement not covered" >                            that.EngineerCountDay = EngineerCountDay;</span>
<span class="cstat-no" title="statement not covered" >                            that.SecurityCountDay = SecurityCountDay;</span>
<span class="cstat-no" title="statement not covered" >                            that.CleanCountDay = CleanCountDay;</span>
<span class="cstat-no" title="statement not covered" >                            that.seriesDay = series;</span>
                            // console.log(55511111)
                            // console.log((data.content.queryData))
                            // console.log(EngineerCountDay)
                            // console.log(SecurityCountDay)
                        }
                    }
                )
            },
            // 七日巡检单趋势（类型)
<span class="fstat-no" title="function not covered" >            typeDay(){</span>
<span class="cstat-no" title="statement not covered" >                let o=this;</span>
<span class="cstat-no" title="statement not covered" >                o.TypeDay =o.$echarts.init(document.getElementById("typeDay"));</span>
<span class="cstat-no" title="statement not covered" >                let option = {</span>
                    barWidth:15,
                    color:["#0089FFFF","#FE9F00FF","#2256A4FF"],
                    tooltip : {
                        trigger: 'axis',
                        axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                            type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                        }
                    },
                    legend: {
                        data: ['保洁巡检', '安保巡检', '工程巡检'],
                        bottom: 20,
                        icon:'react',
                        itemWidth:13,
                        itemHeight:13,
                        itemGap:25,
                        textStyle:{
                            color:'#595D62FF'
                        }
                    },
                    grid: {
                        top:'10%',
                        left: '3%',
                        right: '4%',
                        bottom: '20%',
                        containLabel: true
                    },
                    xAxis : [
                        {
                            type : 'category',
                            inverse:true,
                            // data : ['11/11','11/12','11/13','11/14','11/15','11/16','11/17'],
                            axisLine:{
                                lineStyle:{
                                    color:'#595D62FF',
                                    width:2,//这里是为了突出显示加上的
                                },
                                show:false,
                            },
                            axisTick: {
                                show:false,
                            }
                        }
                    ],
                    yAxis : [
                        {
                            type : 'value',
                            max:40,
                            axisLine:{
                                show: false,
                                lineStyle:{
                                    show:'false',
                                    color:'#595D62FF',
                                    width:2,//这里是为了突出显示加上的
                                }
                            },
                            splitLine: {
                                show: true,
                                lineStyle:{
                                    color: ['#E8E8E8FF'],
                                    width: 1,
                                    type: 'solid',
                                }
                            },
                            axisTick: {
                                show:false,
                            }
                        }
                    ],
                    // series : [
                    //     {
                    //         name:'保洁巡检',
                    //         type:'bar',
                    //         stack: '广告',
                    //         // data:[24, 32, 20, 18, 26, 28, 29]
                    //     },
                    //     {
                    //         name:'安保巡检',
                    //         type:'bar',
                    //         stack: '广告',
                    //         // data:[33, 29, 20, 30, 26, 16, 24]
                    //     },
                    //     {
                    //         name:'工程巡检',
                    //         type:'bar',
                    //         stack: '广告',
                    //         // data:[19, 28, 24, 28, 20, 30, 29]
                    //     },
                    // ]
                };
<span class="cstat-no" title="statement not covered" >                option.series = o.seriesDay;</span>
<span class="cstat-no" title="statement not covered" >                option.xAxis[0].data = o.ReportDay;</span>
<span class="cstat-no" title="statement not covered" >                option.series[0].data = o.CleanCountDay;</span>
<span class="cstat-no" title="statement not covered" >                option.series[1].data = o.SecurityCountDay;</span>
<span class="cstat-no" title="statement not covered" >                option.series[2].data = o.EngineerCountDay;</span>
<span class="cstat-no" title="statement not covered" >                o.TypeDay.setOption(option);</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >                o.TypeDay .on('click', function (param) {</span></span>
                    // console.log(param);//这里根据param填写你的跳转逻辑
<span class="cstat-no" title="statement not covered" >                    if(param.componentIndex==0){</span>
<span class="cstat-no" title="statement not covered" >                        o.octopus.router.jump('/MCS/Inspection/ListByProcess')</span>
                    }
                });
            },
        },
<span class="fstat-no" title="function not covered" >        mounted(){</span>
<span class="cstat-no" title="statement not covered" >            let o=this;</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >            $(window).resize(function () {</span></span>
<span class="cstat-no" title="statement not covered" >                if(o.TypeDay) {</span>
<span class="cstat-no" title="statement not covered" >                    o.TypeDay.resize();</span>
                }
            });
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >            setTimeout(function () {</span></span>
<span class="cstat-no" title="statement not covered" >                o.typeDay();</span>
            },2000);
        },
        props: ["oData"]
    }
&lt;/script&gt;
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Jan 20 2020 17:54:15 GMT+0800 (GMT+08:00)
</div>
</div>
<script src="..\..\..\..\..\prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="..\..\..\..\..\sorter.js"></script>
</body>
</html>
